package com.transfer.service;

import java.util.List;

import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;
import org.springframework.data.jpa.domain.Specification;

import com.common.util.AJAXResultMessage;
import com.transfer.entity.Expatriate;
import com.transfer.entity.dto.ExpatriateQueryDTO;


public interface IExpatriateService {
	public AJAXResultMessage saveOrUpdate(Expatriate expatriate);
	public AJAXResultMessage saveOrUpdate(ExpatriateQueryDTO expatriateQueryDTO);
	
	public void delete(Expatriate expatriate);
	public Expatriate findOne(Long id);
	public List<Expatriate> findAll();
	public void delete(List<Long>ids);
	//动态条件查询
	public Page<ExpatriateQueryDTO> findAll(Specification<Expatriate> spec, Pageable pageable);
}
